<div class="people-list">
    @foreach($ordersArr as $key => $orders)
        @if($key < 3 || $showAll)
            <div class="flex people-row">
                @foreach($orders as $order)
                    <a class="joined-people head-box flex1  @if($order->percent == 100) finished @endif " href="/www/zhongchou666/order?orderId={{$order->id}}">
                        {{--头像--}}
                        @if($key < 3)
                            <img  class="head-img" src="{{$order->wx_head}}" data-src="{{$order->wx_head}}">
                        @else
                            <img  class="head-img lozad" data-src="{{$order->wx_head}}">
                        @endif

                        @if($order->percent >= 100)
                            {{--完成标记--}}
                            <img class="full-tag-img" src="/www/zc666/web/img/finish.png" />
                        @else
                            {{--众筹进度--}}
                            @if($showPercent)
                                <p class="progress-num">{{$order->percent}}% </p>
                            @endif
                        @endif
                    </a>
                @endforeach

                @for($i=0;$i<6-count($orders);$i++)
                        <a class="joined-people head-box flex1"></a>
                @endfor
            </div>
        @endif
    @endforeach

    {{--查看更多--}}
    @if(count($ordersArr) > 2 && !$showAll)
            <p class="more" onclick="show_all_mbmer()">查看全部队友 <span> > </span></p>
    @endif
</div>

<script>

    function show_all_mbmer()
    {
        const peopleBox = $('#all-people')
        peopleBox.removeClass('hide')
        // peopleBox.find('.head-img').each((i, ele) => {
        //     $e = $(ele)
        //     $e.attr('src', $e.data('src'))
        // })
    }
</script>